let arr = [
    {
        "location": "太原市","LongAndLati": ["112.55241979659","37.867742881786"]
    },
    {
        "location": "大同市","LongAndLati": ["113.30378476918","40.073636745883"]
    },
    {
        "location": "阳泉市","LongAndLati": ["113.58417317179","37.853826751374"]
    }
]

function mapArr(arr){
    let obj = {};
    arr.map(function (e) {
        obj[e.location] = e.LongAndLati;
    });
    return obj;
}

console.log(mapArr(arr));